import {createRouter, createWebHistory} from "vue-router";

import IndexView from '../views/IndexView.vue';
import LoginView from '../views/user/account/LoginView.vue'
import RegisterView from '../views/user/account/RegisterView.vue'

const routes = [
    {
        path: "/",
        name: "index",
        component: IndexView,
    },
    {
        path: "/user/account/login/",
        name: "user_login",
        component: LoginView,
    },
    {
        path: "/user/account/register",
        name: "user_register",
        component: RegisterView,
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router